package com.xiaoxiang.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoxiang.auth.dao.PermissionDao;
import com.xiaoxiang.auth.dto.RolePermissionDo;
import com.xiaoxiang.auth.entity.Permission;
import com.xiaoxiang.auth.service.PermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Permission)表服务实现类
 *
 * @author haha
 * @since 2022-03-19 15:25:08
 */
@Service("permissionService")
public class PermissionServiceImpl extends ServiceImpl<PermissionDao, Permission> implements PermissionService {

    @Override
    public List<RolePermissionDo> queryAllByRole() {
        return this.baseMapper.queryAllByRole();
    }
}
